package no.rodland.acc.tags;

import javax.servlet.jsp.tagext.TagSupport;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

/**
 * Created by IntelliJ IDEA.
 *
 * @Since: Jun 21, 2010 2:41:37 PM
 * @Author: fmr
 */
public abstract class RodlandTag extends TagSupport {
    private DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyyMMdd");

    protected String formatDate(DateTime date) {
        return fmt.print(date);
    }
}
